//
//  JSModelBackgroundView.m
//  JigSaw
//
//  Created by Slim Wang on 15/3/10.
//  Copyright (c) 2015年 LITB. All rights reserved.
//

#import "JSModelBackgroundView.h"
#import "JSEditTextView.h"
@implementation JSModelBackgroundView

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
    for (UIView* view in self.subviews) {
        if (![view isKindOfClass:[JSEditTextView class]]) {
            continue;
        }
        CGPoint convertPoint = [self convertPoint:point toView:view];
        if ([view pointInside:convertPoint withEvent:event]) {
            return view;
        }
    }
    return [super hitTest:point withEvent:event];
}

@end
